package com.chiangleoi.appointment.appointments;


import com.alibaba.fastjson.JSON;
import com.chiangleoi.appointment.constant.DateFormatPattern;
import com.chiangleoi.appointment.model.AppointmentsJson;
import com.chiangleoi.appointment.model.PlaceJson;
import com.chiangleoi.appointment.model.UserJson;
import com.chiangleoi.appointment.model.fileJson.PlacesList;
import com.chiangleoi.appointment.model.fileJson.SitePositionList;
import com.chiangleoi.appointment.model.fileJson.VenueList;
import com.chiangleoi.appointment.utils.BeanCopyUtil;
import com.chiangleoi.appointment.utils.DateUtils;
import com.chiangleoi.appointment.utils.HttpUtils;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;

public class GuDingTennisTrain {

    private final static Integer times = 1000000000;


    public static void main(String[] args) throws Exception {
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        String jianglei = "{\"jsonObject\":{\"id\":\"1781662598041706498\",\"createBy\":null,\"createTime\":\"2024-04-20 20:33:59\",\"updateBy\":null,\"updateTime\":null,\"sysOrgCode\":null,\"openId\":\"o21MX4yoIEbMt_qEhOEbIL3e5QTo\",\"nickName\":\"蒋先生\",\"unionId\":null,\"avatarUrl\":\"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132\",\"remarks\":null,\"default01\":null,\"default02\":null,\"default03\":null,\"default04\":null,\"default05\":null},\"subscribeVos\":[{\"id\":207903,\"ballCourtId\":\"09\",\"sjName\":\"20:00-21:00\",\"scheduleId\":\"55\",\"placeName\":\"西边场地\",\"placeId\":34,\"type\":4,\"className\":\"网球晚场\",\"classCode\":\"14\",\"money\":80.0000,\"contacts\":\"大卫\",\"contactNumber\":\"17649988515\",\"memberNumber\":\"24061223300176\",\"appointments\":\"2024-11-29\",\"operator\":null,\"endTime\":null,\"beginTime\":null,\"specOneTimes\":3,\"ctypeCode\":\"090102\",\"isWhole\":0,\"orderId\":null,\"votesnum\":1},{\"id\":207908,\"ballCourtId\":\"09\",\"sjName\":\"21:00-22:00\",\"scheduleId\":\"56\",\"placeName\":\"西边场地\",\"placeId\":34,\"type\":4,\"className\":\"网球晚场\",\"classCode\":\"14\",\"money\":80.0000,\"contacts\":\"张斯栋\",\"contactNumber\":\"17649988515\",\"memberNumber\":\"24031309073417\",\"appointments\":\"2024-11-29\",\"operator\":null,\"endTime\":null,\"beginTime\":null,\"specOneTimes\":3,\"ctypeCode\":\"090102\",\"isWhole\":0,\"orderId\":null,\"votesnum\":1}],\"bookTime\":\"2024-11-29\",\"paymentMethod\":1,\"svCiphertext\":\"W3siaWQiOjPAsImJhbGxDb3VydEvlkIjoiMDIiLCJzak5hbWUiOiIxODowMC0xOTowMCIsInNjaGVkdWxlSWQiOiIxMSIsInBsYWNlTmFtZSI6IuWFq+WPt+ahjCIsInBsYWNlSWQiOjgsInR5cGUiOiIxIiwiY2xhc3NOYW1lIjoi5LmS5LmT5pma5Zy6IiwiY2xhc3NDb2RlIjoiMDUiLCJtb25leSI6MTYsImNvbnRhY3RzIjoiMCIsImNvbnRhY3ROdW1iZXIiOm51bGwsIm1lbWJlck51bWJlciI6bnVsbCwiYXBwb2ludG1lbnRzIjoiMjAyNC0xMS0yOCIsIm9wZXJhdG9yIjpudWxsLCJlbmRUaW1lIjpudWxsLCJiZWdpblRpbWUiOm51bGwsInNwZWNPbmVUaW1lcyI6MiwiY3R5cGVDb2RlIjoiMDIwMTAyIiwiaXNXaG9sZSI6MCwib3JkZXJJZCI6bnVsbCwidm90ZXNudW0iOjF9XQ==\"}";
        String fangfang = "{\"jsonObject\":{\"id\":\"1842702011991183361\",\"createBy\":null,\"createTime\":\"2024-04-20 20:33:59\",\"updateBy\":null,\"updateTime\":null,\"sysOrgCode\":null,\"openId\":\"o21MX4xTGJ9O1WfE7tccPbef6Odc\",\"nickName\":\"芳芳酱\",\"unionId\":null,\"avatarUrl\":\"https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132\",\"remarks\":null,\"default01\":null,\"default02\":null,\"default03\":null,\"default04\":null,\"default05\":null},\"subscribeVos\":[{\"id\":207743,\"ballCourtId\":\"09\",\"sjName\":\"20:00-21:00\",\"scheduleId\":\"55\",\"placeName\":\"东边场地\",\"placeId\":33,\"type\":4,\"className\":\"网球晚场\",\"classCode\":\"14\",\"money\":80.0000,\"contacts\":\"培训\",\"contactNumber\":\"\",\"memberNumber\":\"\",\"appointments\":\"2024-11-29\",\"operator\":null,\"endTime\":null,\"beginTime\":null,\"specOneTimes\":3,\"ctypeCode\":\"090102\",\"isWhole\":0,\"orderId\":null,\"votesnum\":1},{\"id\":207917,\"ballCourtId\":\"09\",\"sjName\":\"21:00-22:00\",\"scheduleId\":\"56\",\"placeName\":\"东边场地\",\"placeId\":33,\"type\":4,\"className\":\"网球晚场\",\"classCode\":\"14\",\"money\":80.0000,\"contacts\":\"胡鸣嗥\",\"contactNumber\":\"18007339999\",\"memberNumber\":\"24030218202465\",\"appointments\":\"2024-11-29\",\"operator\":null,\"endTime\":null,\"beginTime\":null,\"specOneTimes\":3,\"ctypeCode\":\"090102\",\"isWhole\":0,\"orderId\":null,\"votesnum\":1}],\"bookTime\":\"2024-11-29\",\"paymentMethod\":1,\"svCiphertext\":\"W3siaWQiOjPAsImJhbGxDb3VydEvlkIjoiMDIiLCJzak5hbWUiOiIxODowMC0xOTowMCIsInNjaGVkdWxlSWQiOiIxMSIsInBsYWNlTmFtZSI6IuWFq+WPt+ahjCIsInBsYWNlSWQiOjgsInR5cGUiOiIxIiwiY2xhc3NOYW1lIjoi5LmS5LmT5pma5Zy6IiwiY2xhc3NDb2RlIjoiMDUiLCJtb25leSI6MTYsImNvbnRhY3RzIjoiMCIsImNvbnRhY3ROdW1iZXIiOm51bGwsIm1lbWJlck51bWJlciI6bnVsbCwiYXBwb2ludG1lbnRzIjoiMjAyNC0xMS0yOCIsIm9wZXJhdG9yIjpudWxsLCJlbmRUaW1lIjpudWxsLCJiZWdpblRpbWUiOm51bGwsInNwZWNPbmVUaW1lcyI6MiwiY3R5cGVDb2RlIjoiMDIwMTAyIiwiaXNXaG9sZSI6MCwib3JkZXJJZCI6bnVsbCwidm90ZXNudW0iOjF9XQ==\"}";

        for (int index = 0; index < times; index++) {
            executorService.submit(new Runnable() {
                public void run() {
                    try {
                        HttpUtils.doHttp(jianglei);
                        HttpUtils.doHttp(fangfang);
                    } catch (Exception e) {

                    }
                }
            });
        }

        executorService.shutdown();
    }

}
